package com.codebattery.domain.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author cay91
 * @Date 2020-08-31 8:05 PM
 * @Version 1.0
 */
@Data
public class GoodsInfo {
    private Integer goodsId;
    private List<String> goodsImg;  //轮播图
    private String title;   //商品标题
    private String price;   //价格
    private String[] tags = new String[]{"满69-20元", "配次日达"};
    private String[] discount = new String[]{"满148减10", "满218减20", "满288减30"};
    private String[] promotion = new String[]{"'跨店满减", "多买优惠"};
    private String remarksNum;  //评论数

    /**
     * 套餐
     */
    @Data
    public static class Meal {
        private String img;
        private String intro;
        private String price;
    }

    private Meal[][] setMeal;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class HotGoodsInfo {
        private Integer goodsId;    //商品ID
        private String goodsName;   //商品名称
        private String img; //图片url
        private String price;   //价格
        private Integer sale;    //销量
    }

    private List<HotGoodsInfo> hot; //本店热销商品
    private String goodsDetail; //详情

    @Data
    class Param {
        private String title;   //参数标题
        private String content; //参数内容
    }

    private List<Param> param;

    @Data
    class Remark {
        private String goodAnalyse; //好评率
        /**
         * 标签
         */
        private String[] remarksTags = new String[]{"颜色可人", "实惠优选", "严丝合缝", "极致轻薄", "质量没话说", "比定做还合适", "完美品质", "正品行货", "包装有档次", "不容易发热", "已经买第二个", "是全覆盖"};

        private String[] remarksNumDetail = new String[]{"2000", "3000", "900", "1"};

        class Detail {
            private String username;    //用户名
            private String values;  //评分
            private String content; //评论内容
            private String goods; //商品名称
            private String createAt;    //创建时间
        }

        List<Detail> detail;    //评论详情
    }

    private List<Remark> remark;    //评论

    @Data
    public static class Shop {
        private String name;   //商店名称
        private String intro;   //介绍
        private String img; //图标
    }

    private Shop shop;  //商店
}
